package com.bw.service;

import com.bw.domain.Car;
import com.bw.mapper.CarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarServiceImpl implements CarService {
    @Autowired
    CarMapper carMapper;

    @Override
    public List<Car> getCarList(String name, String carno) {
        return carMapper.getCarList(name,carno);
    }

    @Override
    public int addCar(Car car) {
        return carMapper.addCar(car);
    }

    @Override
    public Integer updateCar(String name, Integer id) {
        return carMapper.updateCar(name,id);
    }

    @Override
    public Integer delCar(Integer[] arr) {
        return carMapper.delCar(arr);
    }
}
